package com.diablo.sitemanager.entity;

import java.io.Serializable;
import java.util.Arrays;
import java.util.Date;

public class Article {

    private Long aid;

    private String title;

    private String abstracts;

    private Integer authorid;

    private Date creattime;

    private Integer tagid;

    private String imglink;

    private Long viewcount;

    private Long goodcount;

    private String otk1;

    private String otk2;

    private Integer state;

    private byte[] content;

    public Long getAid() {
        return aid;
    }

    public void setAid(Long aid) {
        this.aid = aid;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title == null ? null : title.trim();
    }

    public String getAbstracts() {
        return abstracts;
    }

    public void setAbstracts(String abstracts) {
        this.abstracts = abstracts == null ? null : abstracts.trim();
    }

    public Integer getAuthorid() {
        return authorid;
    }

    public void setAuthorid(Integer authorid) {
        this.authorid = authorid;
    }

    public Date getCreattime() {
        return creattime;
    }

    public void setCreattime(Date creattime) {
        this.creattime = creattime;
    }

    public Integer getTagid() {
        return tagid;
    }

    public void setTagid(Integer tagid) {
        this.tagid = tagid;
    }

    public String getImglink() {
        return imglink;
    }

    public void setImglink(String imglink) {
        this.imglink = imglink == null ? null : imglink.trim();
    }

    public Long getViewcount() {
        return viewcount;
    }

    public void setViewcount(Long viewcount) {
        this.viewcount = viewcount;
    }

    public Long getGoodcount() {
        return goodcount;
    }

    public void setGoodcount(Long goodcount) {
        this.goodcount = goodcount;
    }

    public String getOtk1() {
        return otk1;
    }

    public void setOtk1(String otk1) {
        this.otk1 = otk1 == null ? null : otk1.trim();
    }

    public String getOtk2() {
        return otk2;
    }

    public void setOtk2(String otk2) {
        this.otk2 = otk2 == null ? null : otk2.trim();
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public byte[] getContent() {
        return content;
    }

    public void setContent(byte[] content) {
        this.content = content;
    }

    @Override
    public String toString() {
        return "Article{" +
                "aid=" + aid +
                ", title='" + title + '\'' +
                ", abstracts='" + abstracts + '\'' +
                ", authorid=" + authorid +
                ", creattime=" + creattime +
                ", tagid=" + tagid +
                ", imglink='" + imglink + '\'' +
                ", viewcount=" + viewcount +
                ", goodcount=" + goodcount +
                ", otk1='" + otk1 + '\'' +
                ", otk2='" + otk2 + '\'' +
                ", state=" + state +
                ", content=" + Arrays.toString(content) +
                '}';
    }
}